<ion-view view-title="发起的拍卖" class="myrecord">
    <!--描述：头部按钮-->
    <ion-nav-buttons side="right">
        <button class="button button-clear font-large-my" on-tap="onshow_auction()">发布活动</button>
    </ion-nav-buttons>

    <div class="bar bar-subheader padding-bottom-0">
        <div class="row padding-0 text-center font-large-my padding-0">
            <div class="col" ng-class="selectIndex==0?'top-activated':''" on-tap="activeSlide(0)">
                活动中
            </div>
            <div class="col" ng-class="selectIndex==1?'top-activated':''" on-tap="activeSlide(1)">
                待审批
            </div>
            <div class="col" ng-class="selectIndex==2?'top-activated':''" on-tap="activeSlide(2)">
                已结束
            </div>
        </div>
    </div>
    <ion-content class="has-subheader">
        <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
        <ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
            <!--活动中-->
            <ion-slide>
                <div class="list list-borderless" ng-repeat="doing in data.act">
                    <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                        <img src="{{doing.image.image}}">
                        <!--<p >{{auction.name}}</p>-->
                        <p><span class="assertive">{{doing.name}}</span><span class="right-zhang balanced">进行中...</span></p>
                        <p><i class="icon ion-clock"></i>{{doing.start_time}}</p>
                        <p><i class="icon ion-clock"></i>{{doing.end_time}}</p>
                        <p>
                            <i class="icon ion-android-contacts assertive"></i>群互动
                        </p>
                    </div>
                </div>
            </ion-slide>

            <!--待审批-->
            <ion-slide>
                <div class="list list-borderless" ng-repeat="pending in data.act">
                    <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                        <img src="{{pending.image.image}}">
                        <!--<p>{{auction.name}}</p>-->
                        <p><span class="assertive">{{pending.name}}</span><span class="right-zhang energized">待审批</span></p>
                        <p><i class="icon ion-clock"></i>{{pending.start_time}}</p>
                        <p><i class="icon ion-clock"></i>{{pending.end_time}}</p>
                        <p>
                            <span on-tap="onshow_auction(pending.act_id)"><i class="icon ion-compose positive"></i>编辑</span>
                            <i class="icon ion-android-contacts assertive margin-left-10-my"></i>群互动
                        </p>
                    </div>
                </div>
            </ion-slide>

            <!--已结束-->
            <ion-slide>
                <div class="list list-borderless" ng-repeat="ended in data.act">
                    <div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:5px;">
                        <img src="{{ended.image.image}}">
                        <!--<p >{{auction.name}}</p>-->
                        <p><span class="assertive">{{ended.name}}</span><span class="right-zhang">已结束</span></p>
                        <p><i class="icon ion-clock"></i>{{ended.start_time}}</p>
                        <p><i class="icon ion-clock"></i>{{ended.end_time}}</p>
                        <p>
                            <span on-tap="onshow_statistics_auction(ended.act_id)"><i class="icon ion-android-options assertive"></i>统计</span>
                        </p>
                    </div>
                </div>
            </ion-slide>

        </ion-slide-box>
        <ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
    </ion-content>
</ion-view>